<template>
    <div>
        <mycate :data="data" />
    </div>
</template>

<script>
import mycate from './mycate'
export default {
  components: { mycate },
    data() {
        return {
            data:{}
        }
    },

    mounted:function(){
        this.axios.get("http://localhost:8000/getcate/").then(res=>{
            console.log(res)

            var mytree = {"id":0, name:""}
            
            mytree['children'] = res.data

            this.data = mytree
        })
    }
}
</script>

<style>

</style>